how to pass parameters in C functions